Skip to content
This repository has been archived by the owner on Nov 1, 2023. It is now read-only.

handle OperationNotAllowed errors when creating VMSS #614

Merged

Conversation

bmc-msft
Copy link
Contributor

@bmc-msft bmc-msft commented Mar 1, 2021

Catch errors from Azure as scaleset creation failures rather than exceptions.

This failure happens when Azure disallows creation of scalesets. This can be triggered by quota issues.

As an example, when the subscription doesn't have quota, users will see this error:

ResourceExistsError: (OperationNotAllowed) Operation could not be completed as it results in exceeding approved Total Regional Cores quota. Additional details - Deployment Model: Resource Manager, Location: eastus2, Current Limit: 100, Current Usage: 100, Additional Required: 20, (Minimum) New Limit Required: 120. Submit a request for Quota increase at by specifying parameters listed in the ‘Details’ section for deployment to succeed. Please read more about quota limits at https://docs.microsoft.com/en-us/azure/azure-supportability/regional-quota-requests.

Catch errors from Azure as scaleset creation failures rather than
exceptions.

This failure happens when Azure disallows creation of scalesets.  This
can be triggered by quota issues.

As an example, when the subscription doesn't have quota, users will see
this error:

ResourceExistsError: (OperationNotAllowed) Operation could not be
completed as it results in exceeding approved Total Regional Cores
quota. Additional details - Deployment Model: Resource Manager,
Location: eastus2, Current Limit: 100, Current Usage: 100, Additional
Required: 20, (Minimum) New Limit Required: 120. Submit a request for
Quota increase at <REDACTED> by specifying parameters listed in the
‘Details’ section for deployment to succeed. Please read more about
quota limits at
https://docs.microsoft.com/en-us/azure/azure-supportability/regional-quota-requests.
@bmc-msft bmc-msft linked an issue Mar 1, 2021 that may be closed by this pull request
@ghost
Copy link

ghost commented Mar 1, 2021

Hello @bmc-msft!

Because this pull request has the auto-merge label, I will be glad to assist with helping to merge this pull request once all check-in policies pass.

Do note that I've been instructed to only help merge pull requests of this repository that have been opened for at least 18 hours, a condition that will be fulfilled in about 11 hours 20 minutes. No worries though, I will be back when the time is right! 😉

p.s. you can customize the way I help with merging this pull request, such as holding this pull request until a specific person approves. Simply @mention me (@msftbot) and give me an instruction to get started! Learn more here.

@bmc-msft bmc-msft merged commit 7f66eee into microsoft:main Mar 2, 2021
@bmc-msft bmc-msft deleted the handle-vmss-create-operation-not-allowed branch March 2, 2021 21:14
@ghost ghost locked as resolved and limited conversation to collaborators Apr 16, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Hitting VM quotas cause exceptions
3 participants